package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.Company;
import com.ruoyi.common.core.domain.entity.Leftover;
import com.ruoyi.common.core.domain.entity.Stock;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户表 数据层
 * 
 * @author ruoyi
 */
public interface CompanyMapper
{
    /**
     * 根据条件分页查询用户列表
     * 
     * @param company 用户信息
     * @return 用户信息集合信息
     */
    public List<Company> selectCompanyList(Company company);

    Company selectCompanyByTableId(String tableId);

    int updateCompany(Company company);

    List<Company> selectAllMaterial();

    int insertCompany(Company company);

    int deleteCompanyById(String id);

    void updateNum(@Param("companyId") String companyId,@Param("leftoverOutNum") double leftoverOutNum);

    List<Stock> selectStock();
}
